package com.skywolf.chem.usercenter.pojo.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ClassName RolePermissionDTO.java
 * @Author Leo
 * @Version 1.0.0
 * @Description 角色权限DTO，角色绑定权限
 * @CreateTime 2019年05月30日 14:21:00
 */
@ApiModel(value = "RolePermissionParam", description = "角色设置权限")
@Data
public class RolePermissionParam {

    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID", required = true)
    @NotNull(message = "角色ID不能为空")
    private Long roleId;

    /**
     * 权限ID集合
     */
    @NotEmpty(message = "权限id不能为空")
    @ApiModelProperty(value = "权限ID集合", required = true)
    private List<Long> permissionIdList;

}
